.class public Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;
.super Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;
.source "MainSettingsFragment.java"


# instance fields
.field private a:Lcom/estrongs/android/pop/l;

.field private b:Landroidx/preference/Preference$OnPreferenceChangeListener;

.field private c:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;-><init>()V

    .line 2
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->c:Landroid/os/Handler;

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3

    .line 15
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "page"

    const-string v2, "setting"

    .line 16
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "btn"

    .line 17
    invoke-virtual {v0, v1, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 18
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string v1, "click"

    invoke-virtual {p1, v1, v0}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 19
    invoke-virtual {p1}, Lorg/json/JSONException;->printStackTrace()V

    :goto_0
    return-void
.end method

.method static synthetic a(Landroidx/preference/Preference;Ljava/lang/Object;)Z
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroidx/preference/Preference;->getKey()Ljava/lang/String;

    move-result-object p0

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0, p0, p1}, Lcom/estrongs/android/pop/FexApplication;->a(Ljava/lang/String;Ljava/lang/Object;)V

    const-string v0, "hidden_file"

    .line 3
    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_0

    .line 4
    check-cast p1, Ljava/lang/Boolean;

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p0

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/pop/l;->b(ZZ)V

    .line 6
    :try_start_0
    new-instance p0, Lorg/json/JSONObject;

    invoke-direct {p0}, Lorg/json/JSONObject;-><init>()V

    const-string v0, "action"

    const-string v1, "click"

    .line 7
    invoke-virtual {p0, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v0, "state"

    .line 8
    invoke-virtual {p0, v0, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string p1, "from"

    const-string v0, "sts"

    .line 9
    invoke-virtual {p0, p1, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 10
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string v0, "hidefile"

    invoke-virtual {p1, v0, p0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_0
    const/4 p0, 0x1

    return p0
.end method

.method private b(Ljava/lang/String;)V
    .locals 1

    .line 4
    invoke-virtual {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->b:Landroidx/preference/Preference$OnPreferenceChangeListener;

    invoke-virtual {p1, v0}, Landroidx/preference/Preference;->setOnPreferenceChangeListener(Landroidx/preference/Preference$OnPreferenceChangeListener;)V

    :cond_0
    return-void
.end method

.method private f()V
    .locals 4

    const-string v0, "preference_tools_settings"

    .line 2
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    check-cast v0, Landroidx/preference/PreferenceCategory;

    .line 3
    sget-boolean v1, Lcom/estrongs/android/pop/j;->P:Z

    if-eqz v1, :cond_0

    :try_start_0
    const-string v1, "gesture_settings"

    .line 4
    invoke-virtual {p0, v1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    .line 5
    :cond_0
    :goto_0
    sget-boolean v1, Lcom/estrongs/android/pop/j;->j:Z

    if-nez v1, :cond_1

    const-string v1, "appmanager_preference"

    .line 6
    invoke-virtual {p0, v1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z

    .line 7
    :cond_1
    sget-boolean v1, Lcom/estrongs/android/pop/j;->R:Z

    if-eqz v1, :cond_2

    :try_start_1
    const-string v1, "downloader_settings"

    .line 8
    invoke-virtual {p0, v1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    :catch_1
    nop

    .line 9
    :cond_2
    :goto_1
    sget-boolean v0, Lcom/estrongs/android/pop/j;->m:Z

    if-eqz v0, :cond_3

    const-string v0, "preference_upgrade_settings_text_category"

    .line 10
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    check-cast v0, Landroidx/preference/PreferenceCategory;

    const-string v1, "preference_rate"

    .line 11
    invoke-virtual {p0, v1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z

    .line 12
    :cond_3
    invoke-static {}, Les/eo;->k()Les/eo;

    move-result-object v0

    invoke-virtual {v0}, Les/eo;->c()Z

    move-result v0

    const-string v1, "preference_new_file_settings_category"

    const-string v2, "file_preference"

    if-nez v0, :cond_4

    .line 13
    :try_start_2
    invoke-virtual {p0, v2}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    check-cast v0, Landroidx/preference/PreferenceCategory;

    .line 14
    invoke-virtual {p0, v1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    goto :goto_2

    :catch_2
    nop

    .line 15
    :cond_4
    :goto_2
    sget-boolean v0, Lcom/estrongs/android/pop/view/e;->a:Z

    if-eqz v0, :cond_5

    .line 16
    :try_start_3
    invoke-virtual {p0, v2}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    check-cast v0, Landroidx/preference/PreferenceCategory;

    .line 17
    invoke-virtual {p0, v1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3

    goto :goto_3

    :catch_3
    move-exception v0

    .line 18
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_5
    :goto_3
    return-void
.end method

.method private g()V
    .locals 11

    const-string v0, "gesture_settings"

    .line 1
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    .line 2
    new-instance v1, Lcom/estrongs/android/pop/app/settings/d;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/d;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "preference_display_settings_category"

    .line 3
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/k;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/k;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "preference_cleanup_settings_category"

    .line 4
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/f;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/f;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "preference_directory_settings_category"

    .line 5
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/l;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/l;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "pref_key_search_engine"

    .line 6
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/q;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/q;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "notification_preference"

    .line 7
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/s;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/s;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "preference_new_file_settings_category"

    .line 8
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 9
    new-instance v1, Lcom/estrongs/android/pop/app/settings/t;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/t;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    :cond_0
    const-string v0, "preference_net_settings_category"

    .line 10
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/g;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/g;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "preference_backup_settings_category"

    .line 11
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/n;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/n;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "appmanager_preference"

    .line 12
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/a;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "downloader_settings"

    .line 13
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/p;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/p;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "window_settings"

    .line 14
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/c;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "recycle_settings"

    .line 15
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    new-instance v1, Lcom/estrongs/android/pop/app/settings/b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/settings/b;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v0, "setting_layout"

    .line 16
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    check-cast v0, Landroidx/preference/PreferenceCategory;

    const-string v1, "preference_home_manage"

    .line 17
    invoke-virtual {v0, v1}, Landroidx/preference/PreferenceGroup;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    const-string v2, "preference_left_navi_manage"

    .line 18
    invoke-virtual {v0, v2}, Landroidx/preference/PreferenceGroup;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v2

    .line 19
    new-instance v3, Lcom/estrongs/android/pop/app/settings/o;

    invoke-direct {v3, p0}, Lcom/estrongs/android/pop/app/settings/o;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v1, v3}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    .line 20
    new-instance v3, Lcom/estrongs/android/pop/app/settings/h;

    invoke-direct {v3, p0}, Lcom/estrongs/android/pop/app/settings/h;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {v2, v3}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    .line 21
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v3

    invoke-virtual {v3}, Les/b00;->i()Z

    move-result v3

    const/16 v4, 0x21

    const-string v5, "  "

    const/4 v6, 0x0

    if-nez v3, :cond_1

    .line 22
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v7, 0x7f080584

    invoke-virtual {v3, v7}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 23
    invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v7

    invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v8

    invoke-virtual {v3, v6, v6, v7, v8}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 24
    new-instance v7, Landroid/text/SpannableString;

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const v9, 0x7f1104f2

    invoke-virtual {p0, v9}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 25
    new-instance v8, Lcom/estrongs/android/pop/app/premium/newui/n;

    invoke-direct {v8, v3}, Lcom/estrongs/android/pop/app/premium/newui/n;-><init>(Landroid/graphics/drawable/Drawable;)V

    .line 26
    invoke-virtual {v7}, Landroid/text/SpannableString;->length()I

    move-result v9

    add-int/lit8 v9, v9, -0x1

    .line 27
    invoke-virtual {v7}, Landroid/text/SpannableString;->length()I

    move-result v10

    .line 28
    invoke-virtual {v7, v8, v9, v10, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 29
    invoke-virtual {v1, v7}, Landroidx/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    .line 30
    new-instance v1, Landroid/text/SpannableString;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const v8, 0x7f110aa0

    invoke-virtual {p0, v8}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-direct {v1, v7}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 31
    new-instance v7, Lcom/estrongs/android/pop/app/premium/newui/n;

    invoke-direct {v7, v3}, Lcom/estrongs/android/pop/app/premium/newui/n;-><init>(Landroid/graphics/drawable/Drawable;)V

    .line 32
    invoke-virtual {v1}, Landroid/text/SpannableString;->length()I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    .line 33
    invoke-virtual {v1}, Landroid/text/SpannableString;->length()I

    move-result v8

    .line 34
    invoke-virtual {v1, v7, v3, v8, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 35
    invoke-virtual {v2, v1}, Landroidx/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    :cond_1
    const-string v1, "preference_toolbar_manage"

    .line 36
    invoke-virtual {v0, v1}, Landroidx/preference/PreferenceGroup;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v2

    .line 37
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v3

    invoke-static {v3}, Lcom/estrongs/android/pop/utils/t;->h(Landroid/content/Context;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 38
    invoke-virtual {v0, v2}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z

    goto :goto_0

    .line 39
    :cond_2
    new-instance v0, Lcom/estrongs/android/pop/app/settings/e;

    invoke-direct {v0, p0, v1, v2}, Lcom/estrongs/android/pop/app/settings/e;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;Ljava/lang/String;Landroidx/preference/Preference;)V

    invoke-virtual {v2, v0}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    .line 40
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/l;->j0(Ljava/lang/String;)Z

    move-result v0

    const v1, 0x7f110abd

    if-eqz v0, :cond_3

    .line 41
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v3, 0x7f0803be

    invoke-virtual {v0, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 42
    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v3

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v7

    invoke-virtual {v0, v6, v6, v3, v7}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 43
    new-instance v3, Landroid/text/SpannableString;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v3, v1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 44
    new-instance v1, Lcom/estrongs/android/pop/app/premium/newui/n;

    invoke-direct {v1, v0}, Lcom/estrongs/android/pop/app/premium/newui/n;-><init>(Landroid/graphics/drawable/Drawable;)V

    .line 45
    invoke-virtual {v3}, Landroid/text/SpannableString;->length()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    .line 46
    invoke-virtual {v3}, Landroid/text/SpannableString;->length()I

    move-result v5

    .line 47
    invoke-virtual {v3, v1, v0, v5, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 48
    invoke-virtual {v2, v3}, Landroidx/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 49
    :cond_3
    invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroidx/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    :goto_0
    return-void
.end method


# virtual methods
.method public synthetic a(Landroidx/preference/Preference;)Z
    .locals 2

    .line 11
    :try_start_0
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    const-string v0, "com.estrongs.android.pop"

    const-string v1, "pname"

    invoke-static {p1, v0, v1}, Lcom/estrongs/android/pop/utils/k;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    const/4 p1, 0x1

    return p1
.end method

.method public synthetic a(Ljava/lang/String;Landroidx/preference/Preference;Landroidx/preference/Preference;)Z
    .locals 2

    .line 12
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p3

    new-instance v0, Lcom/estrongs/android/pop/app/settings/i;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/settings/i;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    const-string v1, "setting"

    invoke-static {p3, v0, v1}, Lcom/estrongs/android/ui/dialog/c1;->a(Landroid/content/Context;Lcom/estrongs/android/ui/dialog/c1$a;Ljava/lang/String;)V

    .line 13
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p3

    invoke-virtual {p3, p1}, Lcom/estrongs/android/pop/l;->f0(Ljava/lang/String;)V

    const p1, 0x7f110abd

    .line 14
    invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Landroidx/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic b()V
    .locals 1

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->H0()V

    return-void
.end method

.method public synthetic b(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "password"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic c(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "backup"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic d()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "category"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 3
    invoke-virtual {p0, v1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 4
    invoke-virtual {p0, v1}, Landroidx/preference/PreferenceFragmentCompat;->onPreferenceTreeClick(Landroidx/preference/Preference;)Z

    .line 5
    invoke-static {v0}, Les/pz;->a(Landroid/content/Intent;)V

    :cond_0
    return-void
.end method

.method public synthetic d(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "app"

    .line 6
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic e(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "download"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic f(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "window"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic g(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "recyclebin"

    .line 50
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic h(Landroidx/preference/Preference;)Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    const-string v0, "setting"

    invoke-static {p1, v0}, Lcom/estrongs/android/ui/homepage/HomeManagerActivity;->a(Landroid/app/Activity;Ljava/lang/String;)V

    const-string p1, "homemanage"

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1
.end method

.method public synthetic i(Landroidx/preference/Preference;)Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p1

    const-string v0, "setting"

    invoke-static {p1, v0}, Lcom/estrongs/android/pop/app/leftnavigation/LeftNaviManagerActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    const-string p1, "navmanage"

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1
.end method

.method public synthetic j(Landroidx/preference/Preference;)Z
    .locals 2

    .line 1
    new-instance p1, Landroid/content/Intent;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const-class v1, Lcom/estrongs/android/pop/app/GestureManageActivity;

    invoke-direct {p1, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->startActivity(Landroid/content/Intent;)V

    const/4 p1, 0x1

    return p1
.end method

.method public synthetic k(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "display"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic l(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "clear"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic m(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "directory"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic n(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "search_engine"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public synthetic o(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "notification"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a:Lcom/estrongs/android/pop/l;

    .line 3
    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->I1()Z

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a:Lcom/estrongs/android/pop/l;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->H1()Z

    const p1, 0x7f14000d

    .line 5
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->addPreferencesFromResource(I)V

    .line 6
    sget-object p1, Lcom/estrongs/android/pop/app/settings/r;->a:Lcom/estrongs/android/pop/app/settings/r;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->b:Landroidx/preference/Preference$OnPreferenceChangeListener;

    .line 7
    sget-boolean p1, Lcom/estrongs/android/pop/view/e;->a:Z

    const-string v0, "preference_rate"

    if-eqz p1, :cond_0

    const-string p1, "preference_upgrade_settings_text_category"

    .line 8
    invoke-virtual {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object p1

    check-cast p1, Landroidx/preference/PreferenceCategory;

    .line 9
    invoke-virtual {p1, v0}, Landroidx/preference/PreferenceGroup;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z

    const-string v0, "update_preference"

    .line 10
    invoke-virtual {p1, v0}, Landroidx/preference/PreferenceGroup;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroidx/preference/PreferenceGroup;->removePreference(Landroidx/preference/Preference;)Z

    goto :goto_0

    .line 11
    :cond_0
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object p1

    .line 12
    new-instance v0, Lcom/estrongs/android/pop/app/settings/j;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/settings/j;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {p1, v0}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    .line 13
    :goto_0
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->f()V

    const-string p1, "hidden_file"

    .line 14
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->b(Ljava/lang/String;)V

    const-string p1, "gesture_setting_enabled"

    .line 15
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->b(Ljava/lang/String;)V

    const-string p1, "thumbnail"

    .line 16
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->b(Ljava/lang/String;)V

    const-string p1, "show_home_new_file"

    .line 17
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->b(Ljava/lang/String;)V

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->c:Landroid/os/Handler;

    new-instance v0, Lcom/estrongs/android/pop/app/settings/m;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/settings/m;-><init>(Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;)V

    invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 19
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->g()V

    .line 20
    :try_start_0
    new-instance p1, Lorg/json/JSONObject;

    invoke-direct {p1}, Lorg/json/JSONObject;-><init>()V

    const-string v0, "page"

    const-string v1, "setting"

    .line 21
    invoke-virtual {p1, v0, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 22
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    const-string v1, "show"

    invoke-virtual {v0, v1, p1}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 23
    invoke-virtual {p1}, Lorg/json/JSONException;->printStackTrace()V

    :goto_1
    return-void
.end method

.method public onResume()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->onResume()V

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const v1, 0x7f11052e

    invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/Activity;->setTitle(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public synthetic p(Landroidx/preference/Preference;)Z
    .locals 0

    const-string p1, "float_window"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/settings/MainSettingsFragment;->a(Ljava/lang/String;)V

    const/4 p1, 0x0

    return p1
.end method
